﻿using System;
using System.Collections.Generic;
using System.Text;
using WMS.Entity;

namespace WMS.IDAL
{
    public interface IUnit
    {
        /// <summary>
        /// 获取全部计量单位
        /// </summary>
        /// <returns></returns>
        IList<UnitEntity> GetAllUnit();
        /// <summary>
        /// 获取指定id的计量单位
        /// </summary>
        /// <param name="unitID"></param>
        /// <returns></returns>
        UnitEntity GetUnitInfo(int unitID);
        /// <summary>
        /// 增加一条计量单位
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        int AddUnitInfo(UnitEntity entity);
        /// <summary>
        /// 更新计量单位
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        int UpdateUnitInfo(UnitEntity entity);
        /// <summary>
        /// 删除一条计量单位
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        int DeleteUnitInfo(UnitEntity entity);
        /// <summary>
        /// 删除一条计量单位
        /// </summary>
        /// <param name="unitID"></param>
        /// <returns></returns>
        int DeleteUnitInfo(int unitID);
    }
}
